<?php
	require 'conn.php';
	$rankId = $_REQUEST['editId'];
	$shopId = $_REQUEST['shopId'];
	$query = "UPDATE rank SET shop_id='$shopId' WHERE rank_id='$rankId'";
	mysql_query($query);
	
	echo "<br>修改成功, 返回<a href='listRank.php'>排行榜</a>";
?>